-- GENERATED SPELL FOR [Stormwind Soldier] --


function spell0_18948(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(23511,pUnit)
pUnit:RegisterEvent('Sorts_18948', 30310, 1)
end

function spell1_18948(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(33626,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18948', 631, 1)
end

function Sorts_18948(pUnit, Event)
local choix_sorts_18948 = math.random(0, 1)
if choix_sorts_18948 == 0 then
pUnit:RegisterEvent('spell0_18948', 1, 1)
end
if choix_sorts_18948 == 1 then
pUnit:RegisterEvent('spell1_18948', 1, 1)
end
end

function mob18948_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18948', math.random(1500, 3000), 1)
end

function mob18948_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18948_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18948_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18948, 1, 'mob18948_Action')
RegisterUnitEvent(18948, 2, 'mob18948_Leave')
RegisterUnitEvent(18948, 3, 'mob18948_Kill')
RegisterUnitEvent(18948, 4, 'mob18948_Die')
